import request from '@/utils/request'

// 添加/修改-用户个性设置数据API（post）/company/privateSet/adupPrivateSet
export const adupPrivateSet = (data) => request.post('/company/privateSet/adupPrivateSet', data)

// 获取-用户个性设置数据列表API（post）/company/privateSet/getPrivateSetList
export const getPrivateSetList = (data) => request.post('/company/privateSet/getPrivateSetList', data)

// 车辆分页列表数据(/company/safetyCenter/getCompanyVehiclePages)
export const getCompanyVehiclePages = (data) => request.post('/company/safetyCenter/getCompanyVehiclePages', data)

// 根据部门名称获取子部门/company/menu/findChildDeptsByName
export const findChildDeptsByName = (data) => request.post('/company/menu/findChildDeptsByName', data)

// 获取-小队、小组-列表(/company/menu/findTeamGroupList)
export const findTeamGroupList = (data) => request.post('/company/menu/findTeamGroupList', data)

//获取-托管给我车队下拉框搜索/company/serviceCenter/findTrusteeshipMeCombo
export const findTrusteeshipMeCombo = (data) => request.post('/company/serviceCenter/findTrusteeshipMeCombo', data)


//根据坐标解析地址（/common/findAddressByLocation）content-type:application/x-www-form-urlencoded
export const findAddressByLocation = (data) => request.post('/common/findAddressByLocation', data, {
    headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
    }
})

// 获取车辆配置（/back/sfcPriceTemplates/getCarConfigurationType）
export const getCarConfigurationType = (data) => request.post('/common/getCarConfigurationType', data)

// 添加/修改车辆(/company/safetyCenter/adupCompanyVehicle)
export const adupCompanyVehicle = (data) => request.post('/company/safetyCenter/adupCompanyVehicle', data)

// 删除车辆(/company/safetyCenter/delCompanyVehicle)
export const delCompanyVehicle = (data) => request.post('/company/safetyCenter/delCompanyVehicle', data)

// 车辆报停(/company/safetyCenter/applyDestory)
export const applyDestory = (data) => request.post('/company/safetyCenter/applyDestory', data)

// 车辆下线(/company/safetyCenter/applyDown)
export const applyDown = (data) => request.post('/company/safetyCenter/applyDown', data)

// 车辆停靠位置修改(/company/safetyCenter/setPosition)
export const setPosition = (data) => request.post('/company/safetyCenter/setPosition', data)

// 根据车辆id获取车辆详情(/company/safetyCenter/findCompanyVehicleById)
export const findCompanyVehicleById = (data) => request.post('/company/safetyCenter/findCompanyVehicleById', data)

// 车辆设置主驾/取消主驾(/company/safetyCenter/setCarDriver)
export const setCarDriver = (data) => request.post('/company/safetyCenter/setCarDriver', data)

// 获取驾驶员下拉框/company/staffCenter/getDriverList
export const getDriverList = (data) => request.post('/company/staffCenter/getDriverCombo', data)

// 获取员工分页列表/company/staffCenter/findStaffList
export const findStaffList = (data) => request.post('/company/staffCenter/findStaffList', data)

//获取-单位部门角色-列表/company/menu/getRoleList
export const getRoleList = (data) => request.post('/company/menu/getRoleList', data)

//导出车辆列表(/company/safetyCenter/exportVehicle)
export const exportVehicle = (data) => request.post('/company/safetyCenter/exportVehicle', data)
